module.exports = {
  publicPath: process.env.NODE_ENV !== 'production' ? '/' : './',
  productionSourceMap: false,
  transpileDependencies: [
    'vue-echarts',
    'resize-detector',
    'js-base64'
  ],
  devServer: {
    port: 3002,
    proxy: {
      '/api': {
        // target: 'http://158.50.71.221:30004', // 开发
        // target: 'http://158.50.232.72:30004', // 内网test
        target: 'http://test.hccb.cc', // 外网test
        ws: false,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}